<%- include top.ejs%>

<div class="container" style="margin-top: 20px;">
    <div class="row">
        <div class="panel panel-info">
            <div class="panel-heading">
                <h3 class="panel-title">
                    登录
                </h3>
            </div>
            <div class="panel-body">
                <form action="/dologin.html" method="post">
                    <div class="form-group">
                        <label for="name">用户名：</label>
                        <input type="text" name="username" class="form-control" id="name" placeholder="用户名"/>
                    </div>
                    <div class="form-group">
                        <label for="password">密码：</label>
                        <input type="password" name="password" class="form-control" id="password" placeholder="密码"/>
                    </div>

                    <div id="hint" class="alert alert-danger hidden" role="alert"><%= msg %></div>
                    <button type="submit" class="btn btn-default">登录</button>

                </form>
            </div>
        </div>
    </div>
</div>
<script>
    function hint(){
        console.info("in")
       var text=$("#hint").text();
        if(text!=''){
            $("#hint" ).removeClass('hidden').addClass('show')
        }
    }
    //hint();
    $(function(){
        setInterval(hint, 1000 );
    })
</script>
<%- include foot.ejs%>